package com.allwees.bs.module.pms.req;

import com.allwees.bs.core.model.product.entity.ProductModel;
import com.allwees.core.common.constraint.EnumValue;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class SetMarketingTypeReq extends BatchProductReq {

    private static final long serialVersionUID = -1949019467447779269L;

    /**
     * 营销商品类型
     */
    @EnumValue(groups = {Add.class},message = "未知的类型~", intValues = {ProductModel.MARKETING_TYPE_1, ProductModel.MARKETING_TYPE_2, ProductModel.MARKETING_TYPE_4, ProductModel.MARKETING_TYPE_8})
    private Integer marketingType;

    @NotEmpty(groups = {Edit.class},message = "活动日期为空~")
    private List<Long> marketingDays;

    public interface Add{}
    public interface Edit{}
}
